package org.gwtde.client;

import org.gwtde.client.controllers.DesktopController;
import org.gwtde.client.controllers.DockController;
import org.gwtde.client.controllers.ShellController;

import net.mygwt.ui.client.mvc.Dispatcher;

import com.google.gwt.core.client.EntryPoint;

public class Main implements EntryPoint {

	private Dispatcher mDispatcher;

	public void onModuleLoad() {
		mDispatcher = Dispatcher.get();
		mDispatcher.addController(new DesktopController());
		mDispatcher.addController(new DockController());

		mDispatcher.addController(new ShellController());

		// start the application
		mDispatcher.dispatch(DesktopEvents.Init);
	}
}
